package com.vcc.service.boss.request.permission;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class CreatePermissionDto implements Serializable {

    private Long parentId;

    @NotBlank(message = "权限名称不能为空")
    private String name;

    @NotBlank(message = "权限编码不能为空")
    private String code;

    @NotNull(message = "是否为个人权限不能为空")
    private Boolean hasPersonal;

    private Long levelNumber;
}
